package com.bit.ioc.service;

import com.bit.ioc.model.Student;
import jakarta.annotation.Resource;
import jakarta.annotation.Resources;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2025-11-19
 * Time: 11:10
 */
@Service
public class UserService {

//    @Qualifier("s2")
//    @Autowired
//    private Student s1;

    @Resource(name = "s2")
    private Student s1;

    public void print(){
        System.out.println("do Service");
        System.out.println(s1);
    }
}
